package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.dto.CustomerDto;
import com.itheima.pojo.Customer;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface CustomerMapper {
    /**
     * 检查项分页条件查询
     *
     * @param customerDto 条件
     * @return Page
     */
    Page<Customer> pageQuery(CustomerDto customerDto);

    /**
     * 会员年龄统计
     * @return List
     */
    List<Map<String, Object>> ageReport();
}
